/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2009-2010, Intel Corporation.
* All rights reserved.
*/
/*
* There are three types of container objects defined in the ACPI Spec as below.
* PNP0A05: Generic Container Device
* A device whose settings are totally controlled by its ACPI resource
* information, and otherwise needs no device or bus-specific driver support.
* This was originally known as Generic ISA Bus Device.
* This ID should only be used for containers that do not produce resources
* for consumption by child devices. Any system resources claimed by a PNP0A05
* device's _CRS object must be consumed by the container itself.
* PNP0A06: Generic Container Device
* This device behaves exactly the same as the PNP0A05 device.
* This was originally known as Extended I/O Bus.
* This ID should only be used for containers that do not produce resources
* for consumption by child devices. Any system resources claimed by a PNP0A06
* device's _CRS object must be consumed by the container itself.
* ACPI0004: Module Device.
* This device is a container object that acts as a bus node in a namespace.
* A Module Device without any of the _CRS, _PRS and _SRS methods behaves
* the same way as the Generic Container Devices (PNP0A05 or PNP0A06).
* If the Module Device contains a _CRS method, only the resources
* described in the _CRS are available for consumption by its child devices.
* Also, the Module Device can support _PRS and _SRS methods if _CRS is
* supported.
*/
#include <sys/acpidev_dr.h>
#include <sys/acpidev_impl.h>
char *devname, int devnamelen);
/*
* Default class driver for ACPI container objects.
*/
0, /* adc_refcnt */
ACPIDEV_CLASS_REV1, /* adc_version */
ACPIDEV_CLASS_ID_CONTAINER, /* adc_class_id */
"ACPI Container", /* adc_class_name */
ACPIDEV_TYPE_CONTAINER, /* adc_dev_type */
NULL, /* adc_private */
NULL, /* adc_pre_probe */
NULL, /* adc_post_probe */
acpidev_container_probe, /* adc_probe */
acpidev_container_filter, /* adc_filter */
acpidev_container_init, /* adc_init */
NULL, /* adc_fini */
};
static char *acpidev_container_device_ids[] = {
};
static char *acpidev_container_uid_formats[] = {
"CPUSCK%x",
};
/* Filter rule table for container objects. */
{ /* Ignore all container objects under ACPI root object */
NULL,
0,
NULL,
1,
1,
NULL,
NULL,
},
{ /* Create node and scan child for all other container objects */
0,
2,
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 container object %s.",
} else {
}
return (rc);
}
static ACPI_STATUS
void **retval)
{
return (AE_CTRL_TERMINATE);
}
static acpidev_filter_result_t
{
void *retval;
static char *cpu_hids[] = {
};
static char *module_hids[] = {
};
/* Return if we don't need to generate a device name. */
res == ACPIDEV_FILTER_SKIP) {
return (res);
}
/* Try to figure out the most specific device name for the object. */
/* Search for ACPI Processor object. */
/* Search for CPU Device object. */
/* Search for Module Device object. */
}
if (cpu_lvl == 1) {
/* CPU as child, most likely a physical CPU. */
/* CPU as grandchild, most likely a system board. */
ACPI_SINGLE_NAME, &buf))) {
/*
* Failed to get ACPI object name; use ACPI object name
* as the default name.
*/
}
return (res);
}
static acpidev_filter_result_t
{
} else {
}
return (res);
}
static ACPI_STATUS
{
static char *compatible[] = {
};
return (AE_ERROR);
}
return (AE_ERROR);
}
return (AE_OK);
}