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_rsc.h>
34 #include <sys/acpidev_dr.h>
35 #include <sys/acpidev_impl.h>
36
37 static ACPI_STATUS acpidev_memory_probe(acpidev_walk_info_t *infop);
38 static acpidev_filter_result_t acpidev_memory_filter(
39 acpidev_walk_info_t *infop, char *devname, int maxlen);
40 static ACPI_STATUS acpidev_memory_init(acpidev_walk_info_t *infop);
41
42 /*
43 * Default class driver for ACPI memory objects.
44 */
45 acpidev_class_t acpidev_class_memory = {
46 0, /* adc_refcnt */
47 ACPIDEV_CLASS_REV1, /* adc_version */
48 ACPIDEV_CLASS_ID_MEMORY, /* adc_class_id */
49 "ACPI memory", /* adc_class_name */
50 ACPIDEV_TYPE_MEMORY, /* adc_dev_type */
|
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_rsc.h>
34 #include <sys/acpidev_dr.h>
35 #include <sys/acpidev_impl.h>
36
37 static ACPI_STATUS acpidev_memory_probe(acpidev_walk_info_t *infop);
38 static acpidev_filter_result_t acpidev_memory_filter(
39 acpidev_walk_info_t *infop, char *devname, int maxlen);
40 static ACPI_STATUS acpidev_memory_init(acpidev_walk_info_t *infop);
41
42 /*
43 * Default class driver for ACPI memory objects.
44 */
45 acpidev_class_t acpidev_class_memory = {
46 0, /* adc_refcnt */
47 ACPIDEV_CLASS_REV1, /* adc_version */
48 ACPIDEV_CLASS_ID_MEMORY, /* adc_class_id */
49 "ACPI memory", /* adc_class_name */
50 ACPIDEV_TYPE_MEMORY, /* adc_dev_type */
|