public void VisitField(AmlParser.SourceBuff sourceBuff, TermArg indexTermArg, ulong bitIndexMultiplier, ulong bitSize, NodePath fieldName) { AcpiObject.AcpiObject indexObj = LoadTimeEvaluate(indexTermArg); CheckObjectType(indexObj, AcpiObjectType.Integer); ulong index = ((AcpiObject.Integer)(indexObj.GetTarget())).Value; ulong bitIndex = index * bitIndexMultiplier; AcpiObject.AcpiObject bufferObj = LoadTimeEvaluate(sourceBuff.buffer); CheckObjectType(bufferObj, AcpiObjectType.Buffer); Node node = acpiNamespace.LookupNode(fieldName, currentPath); node.Value = new BufferField((AcpiObject.Buffer)(bufferObj.GetTarget()), bitIndex, bitSize); }
public override void Visit(AmlParser.SourceBuff sourceBuff) { sourceBuff.buffer.Accept(this); }
public virtual void Visit(AmlParser.SourceBuff sourceBuff) { UnhandledNodeType("SourceBuff"); }