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