Print this page
PANKOVs restructure


  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_device_probe(acpidev_walk_info_t *infop);
  36 static acpidev_filter_result_t acpidev_device_filter(acpidev_walk_info_t *infop,
  37     char *devname, int maxlen);
  38 static ACPI_STATUS acpidev_device_init(acpidev_walk_info_t *infop);
  39 
  40 static uint32_t acpidev_device_unitaddr = 0;
  41 
  42 /*
  43  * Default class driver for ACPI DEVICE objects.
  44  * The default policy for DEVICE objects is to scan child objects without
  45  * creating device nodes. But some special DEVICE objects will have device
  46  * nodes created for them.
  47  */
  48 acpidev_class_t acpidev_class_device = {
  49         0,                              /* adc_refcnt */
  50         ACPIDEV_CLASS_REV1,             /* adc_version */




  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_device_probe(acpidev_walk_info_t *infop);
  36 static acpidev_filter_result_t acpidev_device_filter(acpidev_walk_info_t *infop,
  37     char *devname, int maxlen);
  38 static ACPI_STATUS acpidev_device_init(acpidev_walk_info_t *infop);
  39 
  40 static uint32_t acpidev_device_unitaddr = 0;
  41 
  42 /*
  43  * Default class driver for ACPI DEVICE objects.
  44  * The default policy for DEVICE objects is to scan child objects without
  45  * creating device nodes. But some special DEVICE objects will have device
  46  * nodes created for them.
  47  */
  48 acpidev_class_t acpidev_class_device = {
  49         0,                              /* adc_refcnt */
  50         ACPIDEV_CLASS_REV1,             /* adc_version */