Print this page
PANKOVs restructure


  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 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #ifndef _SYS_DRMACH_ACPI_H
  31 #define _SYS_DRMACH_ACPI_H
  32 #include <sys/types.h>
  33 #include <sys/cmn_err.h>
  34 #include <sys/param.h>
  35 #include <sys/sunddi.h>
  36 #include <sys/acpi/acpi.h>
  37 #include <sys/acpica.h>
  38 #include <sys/acpidev.h>
  39 #include <sys/drmach.h>
  40 
  41 #ifdef __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 #ifdef  _KERNEL
  46 
  47 /* Use ACPI handle as DRMACH handle on x86 systems. */
  48 #define DRMACH_HANDLE           ACPI_HANDLE
  49 
  50 /* Macros to deal with object type. */
  51 #define DRMACH_OBJ(id)          ((drmach_common_t *)id)
  52 
  53 #define DRMACH_NULL_ID(id)      ((id) == 0)
  54 
  55 #define DRMACH_IS_BOARD_ID(id)  \
  56         ((id != 0) && (DRMACH_OBJ(id)->isa == (void *)drmach_board_new))




  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 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #ifndef _SYS_DRMACH_ACPI_H
  31 #define _SYS_DRMACH_ACPI_H
  32 #include <sys/types.h>
  33 #include <sys/cmn_err.h>
  34 #include <sys/param.h>
  35 #include <sys/sunddi.h>
  36 #include <acpica/include/acpi.h>
  37 #include <sys/acpica.h>
  38 #include <sys/acpidev.h>
  39 #include <sys/drmach.h>
  40 
  41 #ifdef __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 #ifdef  _KERNEL
  46 
  47 /* Use ACPI handle as DRMACH handle on x86 systems. */
  48 #define DRMACH_HANDLE           ACPI_HANDLE
  49 
  50 /* Macros to deal with object type. */
  51 #define DRMACH_OBJ(id)          ((drmach_common_t *)id)
  52 
  53 #define DRMACH_NULL_ID(id)      ((id) == 0)
  54 
  55 #define DRMACH_IS_BOARD_ID(id)  \
  56         ((id != 0) && (DRMACH_OBJ(id)->isa == (void *)drmach_board_new))