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;
 }
示例#3
0
 public NamesVisitor(AcpiNamespace acpiNamespace)
 {
     this.acpiNamespace = acpiNamespace;
     this.currentPath   = AbsoluteNodePath.CreateRoot();
 }
示例#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);
        }