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