예제 #1
0
        private static AmlParser.ParseSuccess ParseAndLoadRegion(IoMemory region, AcpiObject.IOperationRegionAccessor operationRegionAccessor)
        {
            AmlParser.AMLCode result;
            int       offset = 0;
            AmlParser parser = new AmlParser(new IoMemoryAmlStreamAdapter(region), null, null);

            AmlParser.ParseSuccess parseSuccess =
                parser.ParseAMLCode(out result, ref offset, region.Length);

            if (parseSuccess == AmlParser.ParseSuccess.Success)
            {
                AmlLoader loader = new AmlLoader(acpiNamespace, operationRegionAccessor);
                loader.Load(result);
            }
            return(parseSuccess);
        }
예제 #2
0
 public ValuesVisitor(AmlLoader loader, AcpiNamespace acpiNamespace)
 {
     this.acpiNamespace = acpiNamespace;
     this.currentPath   = AbsoluteNodePath.CreateRoot();
     this.loader        = loader;
 }