Print this page
PANKOVs restructure


  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 #ifndef _SYS_ACPIDEV_IMPL_H
  27 #define _SYS_ACPIDEV_IMPL_H
  28 #include <sys/types.h>
  29 #include <sys/cmn_err.h>
  30 #include <sys/bitmap.h>
  31 #include <sys/synch.h>
  32 #include <sys/sunddi.h>
  33 #include <sys/acpi/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/acpidev.h>
  36 #include <sys/acpidev_dr.h>
  37 
  38 #ifdef __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #ifdef  _KERNEL
  43 
  44 #define ACPIDEV_ARRAY_PARAM(a)          (a), (sizeof (a) / sizeof ((a)[0]))
  45 
  46 /* Debug support facilities. */
  47 extern int acpidev_debug;
  48 #define ACPIDEV_DEBUG(lvl, ...) if (acpidev_debug) cmn_err((lvl), __VA_ARGS__)
  49 
  50 /* Data attached to an ACPI object to maintain device status information. */
  51 struct acpidev_data_impl {
  52         uint32_t                        aod_eflag;      /* External flags */
  53         uint32_t                        aod_iflag;      /* Internal flags */




  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 #ifndef _SYS_ACPIDEV_IMPL_H
  27 #define _SYS_ACPIDEV_IMPL_H
  28 #include <sys/types.h>
  29 #include <sys/cmn_err.h>
  30 #include <sys/bitmap.h>
  31 #include <sys/synch.h>
  32 #include <sys/sunddi.h>
  33 #include <acpica/include/acpi.h>
  34 #include <sys/acpica.h>
  35 #include <sys/acpidev.h>
  36 #include <sys/acpidev_dr.h>
  37 
  38 #ifdef __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #ifdef  _KERNEL
  43 
  44 #define ACPIDEV_ARRAY_PARAM(a)          (a), (sizeof (a) / sizeof ((a)[0]))
  45 
  46 /* Debug support facilities. */
  47 extern int acpidev_debug;
  48 #define ACPIDEV_DEBUG(lvl, ...) if (acpidev_debug) cmn_err((lvl), __VA_ARGS__)
  49 
  50 /* Data attached to an ACPI object to maintain device status information. */
  51 struct acpidev_data_impl {
  52         uint32_t                        aod_eflag;      /* External flags */
  53         uint32_t                        aod_iflag;      /* Internal flags */