Home | History | Annotate | Line # | Download | only in acpi
acpi_util.h revision 1.2.4.2
      1  1.2.4.2  rmind /*	$NetBSD: acpi_util.h,v 1.2.4.2 2010/05/30 05:17:17 rmind Exp $ */
      2  1.2.4.2  rmind 
      3  1.2.4.2  rmind /*-
      4  1.2.4.2  rmind  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
      5  1.2.4.2  rmind  * All rights reserved.
      6  1.2.4.2  rmind  *
      7  1.2.4.2  rmind  * This code is derived from software contributed to The NetBSD Foundation
      8  1.2.4.2  rmind  * by Charles M. Hannum of By Noon Software, Inc.
      9  1.2.4.2  rmind  *
     10  1.2.4.2  rmind  * Redistribution and use in source and binary forms, with or without
     11  1.2.4.2  rmind  * modification, are permitted provided that the following conditions
     12  1.2.4.2  rmind  * are met:
     13  1.2.4.2  rmind  * 1. Redistributions of source code must retain the above copyright
     14  1.2.4.2  rmind  *    notice, this list of conditions and the following disclaimer.
     15  1.2.4.2  rmind  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.2.4.2  rmind  *    notice, this list of conditions and the following disclaimer in the
     17  1.2.4.2  rmind  *    documentation and/or other materials provided with the distribution.
     18  1.2.4.2  rmind  *
     19  1.2.4.2  rmind  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  1.2.4.2  rmind  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.2.4.2  rmind  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.2.4.2  rmind  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  1.2.4.2  rmind  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.2.4.2  rmind  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.2.4.2  rmind  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.2.4.2  rmind  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.2.4.2  rmind  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.2.4.2  rmind  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.2.4.2  rmind  * POSSIBILITY OF SUCH DAMAGE.
     30  1.2.4.2  rmind  */
     31  1.2.4.2  rmind 
     32  1.2.4.2  rmind /*
     33  1.2.4.2  rmind  * Copyright 2001, 2003 Wasabi Systems, Inc.
     34  1.2.4.2  rmind  * All rights reserved.
     35  1.2.4.2  rmind  *
     36  1.2.4.2  rmind  * Written by Jason R. Thorpe for Wasabi Systems, Inc.
     37  1.2.4.2  rmind  *
     38  1.2.4.2  rmind  * Redistribution and use in source and binary forms, with or without
     39  1.2.4.2  rmind  * modification, are permitted provided that the following conditions
     40  1.2.4.2  rmind  * are met:
     41  1.2.4.2  rmind  * 1. Redistributions of source code must retain the above copyright
     42  1.2.4.2  rmind  *    notice, this list of conditions and the following disclaimer.
     43  1.2.4.2  rmind  * 2. Redistributions in binary form must reproduce the above copyright
     44  1.2.4.2  rmind  *    notice, this list of conditions and the following disclaimer in the
     45  1.2.4.2  rmind  *    documentation and/or other materials provided with the distribution.
     46  1.2.4.2  rmind  * 3. All advertising materials mentioning features or use of this software
     47  1.2.4.2  rmind  *    must display the following acknowledgement:
     48  1.2.4.2  rmind  *	This product includes software developed for the NetBSD Project by
     49  1.2.4.2  rmind  *	Wasabi Systems, Inc.
     50  1.2.4.2  rmind  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
     51  1.2.4.2  rmind  *    or promote products derived from this software without specific prior
     52  1.2.4.2  rmind  *    written permission.
     53  1.2.4.2  rmind  *
     54  1.2.4.2  rmind  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
     55  1.2.4.2  rmind  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     56  1.2.4.2  rmind  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     57  1.2.4.2  rmind  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
     58  1.2.4.2  rmind  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     59  1.2.4.2  rmind  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     60  1.2.4.2  rmind  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     61  1.2.4.2  rmind  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     62  1.2.4.2  rmind  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     63  1.2.4.2  rmind  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     64  1.2.4.2  rmind  * POSSIBILITY OF SUCH DAMAGE.
     65  1.2.4.2  rmind  */
     66  1.2.4.2  rmind 
     67  1.2.4.2  rmind #ifndef _SYS_DEV_ACPI_ACPI_UTIL_H
     68  1.2.4.2  rmind #define _SYS_DEV_ACPI_ACPI_UTIL_H
     69  1.2.4.2  rmind 
     70  1.2.4.2  rmind ACPI_STATUS	acpi_eval_integer(ACPI_HANDLE, const char *, ACPI_INTEGER *);
     71  1.2.4.2  rmind ACPI_STATUS	acpi_eval_set_integer(ACPI_HANDLE handle, const char *path,
     72  1.2.4.2  rmind 		    ACPI_INTEGER arg);
     73  1.2.4.2  rmind ACPI_STATUS	acpi_eval_string(ACPI_HANDLE, const char *, char **);
     74  1.2.4.2  rmind ACPI_STATUS	acpi_eval_struct(ACPI_HANDLE, const char *, ACPI_BUFFER *);
     75  1.2.4.2  rmind ACPI_STATUS	acpi_eval_reference_handle(ACPI_OBJECT *, ACPI_HANDLE *);
     76  1.2.4.2  rmind 
     77  1.2.4.2  rmind ACPI_STATUS	acpi_foreach_package_object(ACPI_OBJECT *,
     78  1.2.4.2  rmind 			ACPI_STATUS (*)(ACPI_OBJECT *, void *), void *);
     79  1.2.4.2  rmind ACPI_STATUS	acpi_get(ACPI_HANDLE, ACPI_BUFFER *,
     80  1.2.4.2  rmind 			ACPI_STATUS (*)(ACPI_HANDLE, ACPI_BUFFER *));
     81  1.2.4.2  rmind struct acpi_devnode *acpi_get_node(ACPI_HANDLE handle);
     82  1.2.4.2  rmind 
     83  1.2.4.2  rmind const char*	acpi_name(ACPI_HANDLE);
     84  1.2.4.2  rmind 
     85  1.2.4.2  rmind int		acpi_match_hid(ACPI_DEVICE_INFO *, const char * const *);
     86  1.2.4.2  rmind 
     87  1.2.4.2  rmind #endif	/* !_SYS_DEV_ACPI_ACPI_UTIL_H */
     88