1*3eb244d8Sjoerg /* $NetBSD: aml_evalobj.h,v 1.2 2011/07/17 20:54:55 joerg Exp $ */ 253e202c1Schristos 353e202c1Schristos /*- 453e202c1Schristos * Copyright (c) 1999 Takanori Watanabe 553e202c1Schristos * All rights reserved. 653e202c1Schristos * 753e202c1Schristos * Redistribution and use in source and binary forms, with or without 853e202c1Schristos * modification, are permitted provided that the following conditions 953e202c1Schristos * are met: 1053e202c1Schristos * 1. Redistributions of source code must retain the above copyright 1153e202c1Schristos * notice, this list of conditions and the following disclaimer. 1253e202c1Schristos * 2. Redistributions in binary form must reproduce the above copyright 1353e202c1Schristos * notice, this list of conditions and the following disclaimer in the 1453e202c1Schristos * documentation and/or other materials provided with the distribution. 1553e202c1Schristos * 1653e202c1Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1753e202c1Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1853e202c1Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1953e202c1Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2053e202c1Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2153e202c1Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2253e202c1Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2353e202c1Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2453e202c1Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2553e202c1Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2653e202c1Schristos * SUCH DAMAGE. 2753e202c1Schristos * 2853e202c1Schristos * Id: aml_evalobj.h,v 1.11 2000/08/16 18:14:53 iwasaki Exp 2953e202c1Schristos * $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_evalobj.h,v 1.2 2000/09/20 22:53:39 iwasaki Exp $ 3053e202c1Schristos */ 3153e202c1Schristos 3253e202c1Schristos #ifndef _AML_EVALOBJ_H_ 3353e202c1Schristos #define _AML_EVALOBJ_H_ 3453e202c1Schristos 35*3eb244d8Sjoerg #include <stdarg.h> 3653e202c1Schristos 3753e202c1Schristos union aml_object *aml_eval_objref(struct aml_environ *, 3853e202c1Schristos union aml_object *); 3953e202c1Schristos union aml_object *aml_eval_name(struct aml_environ *, 4053e202c1Schristos struct aml_name *); 4153e202c1Schristos int aml_eval_name_simple(struct aml_name *, va_list); 4253e202c1Schristos int aml_objtonum(struct aml_environ *, 4353e202c1Schristos union aml_object *); 4453e202c1Schristos struct aml_name *aml_execute_method(struct aml_environ *); 4553e202c1Schristos union aml_object *aml_invoke_method(struct aml_name *, 4653e202c1Schristos int, union aml_object *); 4753e202c1Schristos union aml_object *aml_invoke_method_by_name(char *, 4853e202c1Schristos int, union aml_object *); 4953e202c1Schristos 5053e202c1Schristos #endif /* !_AML_EVALOBJ_H_ */ 51