/*
* 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_impl.h>
/*
* Default class driver for ACPI scope objects.
* This class driver is used to handle predefined ACPI SCOPE objects
* under the ACPI root object, such as _PR_, _SB_ and _TZ_ etc.
* The default policy for ACPI SCOPE objects is SKIP.
*/
0, /* adc_refcnt */
ACPIDEV_CLASS_REV1, /* adc_version */
ACPIDEV_CLASS_ID_SCOPE, /* adc_class_id */
"ACPI Scope", /* adc_class_name */
ACPIDEV_TYPE_SCOPE, /* adc_dev_type */
NULL, /* adc_private */
NULL, /* adc_pre_probe */
NULL, /* adc_post_probe */
acpidev_scope_probe, /* adc_probe */
acpidev_scope_filter, /* adc_filter */
acpidev_scope_init, /* adc_init */
NULL, /* adc_fini */
};
/*
* All SCOPE objects share a global pseudo unit address space across the system.
*/
/* Filter rule table for ACPI SCOPE objects. */
{ /* For safety, _SB_ is hardcoded as DEVICE by acpica */
NULL,
0,
1,
1,
},
{ /* Handle _PR_ object. */
NULL,
0,
1,
1,
},
{ /* Ignore all other scope objects. */
NULL,
0,
NULL,
1,
NULL,
NULL,
}
};
static ACPI_STATUS
{
int flags;
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 scope object %s.",
} else {
}
return (rc);
}
static acpidev_filter_result_t
{
} else {
}
return (res);
}
static ACPI_STATUS
{
char *compatible[] = {
};
return (AE_ERROR);
}
return (AE_ERROR);
}
return (AE_OK);
}