Print this page
PANKOVs restructure


  49 #include <sys/conf.h>
  50 #include <sys/ddi.h>
  51 #include <sys/sunddi.h>
  52 #include <sys/ddi_impldefs.h>
  53 #include <sys/cmn_err.h>
  54 #include <sys/errno.h>
  55 #include <sys/modctl.h>
  56 #include <sys/open.h>
  57 #include <sys/stat.h>
  58 #include <sys/poll.h>
  59 #include <sys/pbio.h>
  60 #include <sys/sysevent/eventdefs.h>
  61 #include <sys/sysevent/pwrctl.h>
  62 
  63 #if defined(__sparc)
  64 #include <sys/machsystm.h>
  65 #endif
  66 
  67 #ifdef  ACPI_POWER_BUTTON
  68 
  69 #include <sys/acpi/acpi.h>
  70 #include <sys/acpica.h>
  71 
  72 #else
  73 
  74 #include <sys/epic.h>
  75 /*
  76  * Some #defs that must be here as they differ for power.c
  77  * and epic.c
  78  */
  79 #define EPIC_REGS_OFFSET        0x00
  80 #define EPIC_REGS_LEN           0x82
  81 
  82 
  83 /*
  84  * This flag, which is set for platforms,  that have EPIC processor
  85  * to process power button interrupt, helps in executing platform
  86  * specific code.
  87  */
  88 static char     hasEPIC = B_FALSE;
  89 #endif  /* ACPI_POWER_BUTTON */




  49 #include <sys/conf.h>
  50 #include <sys/ddi.h>
  51 #include <sys/sunddi.h>
  52 #include <sys/ddi_impldefs.h>
  53 #include <sys/cmn_err.h>
  54 #include <sys/errno.h>
  55 #include <sys/modctl.h>
  56 #include <sys/open.h>
  57 #include <sys/stat.h>
  58 #include <sys/poll.h>
  59 #include <sys/pbio.h>
  60 #include <sys/sysevent/eventdefs.h>
  61 #include <sys/sysevent/pwrctl.h>
  62 
  63 #if defined(__sparc)
  64 #include <sys/machsystm.h>
  65 #endif
  66 
  67 #ifdef  ACPI_POWER_BUTTON
  68 
  69 #include <acpica/include/acpi.h>
  70 #include <sys/acpica.h>
  71 
  72 #else
  73 
  74 #include <sys/epic.h>
  75 /*
  76  * Some #defs that must be here as they differ for power.c
  77  * and epic.c
  78  */
  79 #define EPIC_REGS_OFFSET        0x00
  80 #define EPIC_REGS_LEN           0x82
  81 
  82 
  83 /*
  84  * This flag, which is set for platforms,  that have EPIC processor
  85  * to process power button interrupt, helps in executing platform
  86  * specific code.
  87  */
  88 static char     hasEPIC = B_FALSE;
  89 #endif  /* ACPI_POWER_BUTTON */