Exemplo n.º 1
0
        public Node CreateNodeAt(NodePath nodePath)
        {
            Node node = acpiNamespace.CreateNodeAt(nodePath, currentPath);

            frameStack.Peek().NotifyCreateNodeAt(nodePath, node);
            return(node);
        }
Exemplo n.º 2
0
            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);
            }
Exemplo n.º 3
0
        public bool IsNullTarget(AmlParser.Target target)
        {
            SuperName superName = target.superName;

            if (superName.Tag != SuperName.TagValue.SimpleName)
            {
                return(false);
            }
            SimpleName simpleName = superName.GetAsSimpleName();

            if (simpleName.Tag != SimpleName.TagValue.NameString)
            {
                return(false);
            }
            NodePath nodePath = simpleName.GetAsNameString().nodePath;

            return(!nodePath.IsAbsolute &&
                   nodePath.NumParentPrefixes == 0 &&
                   nodePath.NameSegments.Length == 0);
        }
Exemplo n.º 4
0
 public Node LookupNode(NodePath nodePath)
 {
     return(acpiNamespace.LookupNode(nodePath, currentPath));
 }
Exemplo n.º 5
0
 public void NotifyCreateNodeAt(NodePath nodePath, Node node)
 {
     methodTemporaryNamespaceObjectSet.Add(node);
 }
Exemplo n.º 6
0
 public Field(AmlParser.FieldFlags fieldFlags, NodePath nodePath, FieldElement[] fieldElements)
 {
     this.fieldFlags    = fieldFlags;
     this.nodePath      = nodePath;
     this.fieldElements = fieldElements;
 }
Exemplo n.º 7
0
 public OperationRegion(RegionSpace operationSpace, NodePath nodePath)
 {
     this.operationSpace = operationSpace;
     this.nodePath       = nodePath;
 }
Exemplo n.º 8
0
 public JumpIfNodePathExists(NodePath nodePath)
 {
     this.nodePath = nodePath;
 }
Exemplo n.º 9
0
 public Load(NodePath nodePath)
 {
     this.nodePath = nodePath;
 }
Exemplo n.º 10
0
 public DefName(NodePath nodePath)
 {
     this.nodePath = nodePath;
 }
Exemplo n.º 11
0
 public CreateField(NodePath nodePath)
 {
     this.nodePath = nodePath;
 }
Exemplo n.º 12
0
 public PushNodePath(NodePath value)
 {
     this.value = value;
 }