private void AddMethod(string name, byte numArgs, ReservedMethod.AcpiMethodImpl impl)
        {
            AbsoluteNodePath root = AbsoluteNodePath.CreateRoot();
            Node             node = acpiNamespace.CreateNodeAt(new AbsoluteNodePath(new string[] { name }), root);

            node.Value = new ReservedMethod(numArgs, SerializeFlag.NotSerialized, 0 /*syncLevel*/, impl);;
        }
 public AmlInterpreterThread(AcpiNamespace acpiNamespace, MethodResultCallback callback,
                             IOperationRegionAccessor operationRegionAccessor)
 {
     this.acpiNamespace           = acpiNamespace;
     this.currentPath             = AbsoluteNodePath.CreateRoot();
     this.callback                = callback;
     this.operationRegionAccessor = operationRegionAccessor;
 }
Exemple #3
0
 public NamesVisitor(AcpiNamespace acpiNamespace)
 {
     this.acpiNamespace = acpiNamespace;
     this.currentPath   = AbsoluteNodePath.CreateRoot();
 }
Exemple #4
0
 public ValuesVisitor(AmlLoader loader, AcpiNamespace acpiNamespace)
 {
     this.acpiNamespace = acpiNamespace;
     this.currentPath   = AbsoluteNodePath.CreateRoot();
     this.loader        = loader;
 }
        private void AddNamespace(string name)
        {
            AbsoluteNodePath root = AbsoluteNodePath.CreateRoot();

            acpiNamespace.CreateNodeAt(new AbsoluteNodePath(new string[] { name }), root);
        }