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