acpidev_memory.c revision a31148363f598def767ac48c5d82e1572e44b935
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2009-2010, Intel Corporation.
* All rights reserved.
*/
#include <sys/acpidev_rsc.h>
#include <sys/acpidev_dr.h>
#include <sys/acpidev_impl.h>
/*
* Default class driver for ACPI memory objects.
*/
0, /* adc_refcnt */
ACPIDEV_CLASS_REV1, /* adc_version */
ACPIDEV_CLASS_ID_MEMORY, /* adc_class_id */
"ACPI memory", /* adc_class_name */
ACPIDEV_TYPE_MEMORY, /* adc_dev_type */
NULL, /* adc_private */
NULL, /* adc_pre_probe */
NULL, /* adc_post_probe */
acpidev_memory_probe, /* adc_probe */
acpidev_memory_filter, /* adc_filter */
acpidev_memory_init, /* adc_init */
NULL, /* adc_fini */
};
/*
* List of class drivers which will be called in order when handling
* children of ACPI memory objects.
*/
static char *acpidev_memory_device_ids[] = {
};
static char *acpidev_memory_uid_formats[] = {
"MEM%x-%x",
};
/* Filter rule table for memory objects. */
static acpidev_filter_rule_t acpidev_memory_filters[] = {
{ /* Ignore all memory objects under the ACPI root object */
NULL,
0,
NULL,
1,
1,
NULL,
NULL,
},
{ /* Create node and scan child for all other memory objects */
NULL,
0,
2,
NULL,
}
};
static ACPI_STATUS
{
int flags;
ACPIDEV_ARRAY_PARAM(acpidev_memory_device_ids)) == 0) {
return (AE_OK);
}
switch (infop->awi_op_type) {
case ACPIDEV_OP_BOOT_PROBE:
}
break;
case ACPIDEV_OP_BOOT_REPROBE:
break;
case ACPIDEV_OP_HOTPLUG_PROBE:
}
break;
default:
break;
}
}
"!acpidev: failed to process memory object %s.",
} else {
}
return (rc);
}
static acpidev_filter_result_t
{
} else {
}
return (res);
}
static ACPI_STATUS
{
char *compatible[] = {
"mem"
};
return (AE_ERROR);
}
return (AE_ERROR);
}
return (AE_ERROR);
}
return (AE_OK);
}