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); }
public ValuesVisitor(AmlLoader loader, AcpiNamespace acpiNamespace) { this.acpiNamespace = acpiNamespace; this.currentPath = AbsoluteNodePath.CreateRoot(); this.loader = loader; }