10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2009-2010, Intel Corporation.
23 * All rights reserved.
24 */
25
26 #include <sys/types.h>
27 #include <sys/atomic.h>
28 #include <sys/sunddi.h>
29 #include <sys/sunndi.h>
30 #include <sys/acpi/acpi.h>
31 #include <sys/acpica.h>
32 #include <sys/acpidev.h>
33 #include <sys/acpidev_impl.h>
34
35 static ACPI_STATUS acpidev_scope_probe(acpidev_walk_info_t *infop);
36 static acpidev_filter_result_t acpidev_scope_filter(acpidev_walk_info_t *infop,
37 char *devname, int maxlen);
38 static ACPI_STATUS acpidev_scope_init(acpidev_walk_info_t *infop);
39
40 /*
41 * Default class driver for ACPI scope objects.
42 * This class driver is used to handle predefined ACPI SCOPE objects
43 * under the ACPI root object, such as _PR_, _SB_ and _TZ_ etc.
44 * The default policy for ACPI SCOPE objects is SKIP.
45 */
46 acpidev_class_t acpidev_class_scope = {
47 0, /* adc_refcnt */
48 ACPIDEV_CLASS_REV1, /* adc_version */
49 ACPIDEV_CLASS_ID_SCOPE, /* adc_class_id */
50 "ACPI Scope", /* adc_class_name */
|
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2009-2010, Intel Corporation.
23 * All rights reserved.
24 */
25
26 #include <sys/types.h>
27 #include <sys/atomic.h>
28 #include <sys/sunddi.h>
29 #include <sys/sunndi.h>
30 #include <acpica/include/acpi.h>
31 #include <sys/acpica.h>
32 #include <sys/acpidev.h>
33 #include <sys/acpidev_impl.h>
34
35 static ACPI_STATUS acpidev_scope_probe(acpidev_walk_info_t *infop);
36 static acpidev_filter_result_t acpidev_scope_filter(acpidev_walk_info_t *infop,
37 char *devname, int maxlen);
38 static ACPI_STATUS acpidev_scope_init(acpidev_walk_info_t *infop);
39
40 /*
41 * Default class driver for ACPI scope objects.
42 * This class driver is used to handle predefined ACPI SCOPE objects
43 * under the ACPI root object, such as _PR_, _SB_ and _TZ_ etc.
44 * The default policy for ACPI SCOPE objects is SKIP.
45 */
46 acpidev_class_t acpidev_class_scope = {
47 0, /* adc_refcnt */
48 ACPIDEV_CLASS_REV1, /* adc_version */
49 ACPIDEV_CLASS_ID_SCOPE, /* adc_class_id */
50 "ACPI Scope", /* adc_class_name */
|