Print this page
update to acpica-unix2-20140114
update to acpica-unix2-20131218
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/acpi/acevents.h
          +++ new/usr/src/common/acpica/include/acevents.h
   1    1  /******************************************************************************
   2    2   *
   3    3   * Name: acevents.h - Event subcomponent prototypes and defines
   4    4   *
   5    5   *****************************************************************************/
   6    6  
   7    7  /*
   8      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2014, Intel Corp.
   9    9   * All rights reserved.
  10   10   *
  11   11   * Redistribution and use in source and binary forms, with or without
  12   12   * modification, are permitted provided that the following conditions
  13   13   * are met:
  14   14   * 1. Redistributions of source code must retain the above copyright
  15   15   *    notice, this list of conditions, and the following disclaimer,
  16   16   *    without modification.
  17   17   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  18   18   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 59 lines elided ↑ open up ↑
  78   78      UINT32                  NotifyValue);
  79   79  
  80   80  
  81   81  /*
  82   82   * evglock - Global Lock support
  83   83   */
  84   84  ACPI_STATUS
  85   85  AcpiEvInitGlobalLockHandler (
  86   86      void);
  87   87  
       88 +ACPI_HW_DEPENDENT_RETURN_OK (
  88   89  ACPI_STATUS
  89   90  AcpiEvAcquireGlobalLock(
  90      -    UINT16                  Timeout);
       91 +    UINT16                  Timeout))
  91   92  
       93 +ACPI_HW_DEPENDENT_RETURN_OK (
  92   94  ACPI_STATUS
  93   95  AcpiEvReleaseGlobalLock(
  94      -    void);
       96 +    void))
  95   97  
  96   98  ACPI_STATUS
  97   99  AcpiEvRemoveGlobalLockHandler (
  98  100      void);
  99  101  
 100  102  
 101  103  /*
 102  104   * evgpe - Low-level GPE support
 103  105   */
 104  106  UINT32
↓ open down ↓ 42 lines elided ↑ open up ↑
 147  149      UINT8                   GpeBlockBaseNumber,
 148  150      UINT32                  InterruptNumber,
 149  151      ACPI_GPE_BLOCK_INFO     **ReturnGpeBlock);
 150  152  
 151  153  ACPI_STATUS
 152  154  AcpiEvInitializeGpeBlock (
 153  155      ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
 154  156      ACPI_GPE_BLOCK_INFO     *GpeBlock,
 155  157      void                    *Context);
 156  158  
      159 +ACPI_HW_DEPENDENT_RETURN_OK (
 157  160  ACPI_STATUS
 158  161  AcpiEvDeleteGpeBlock (
 159      -    ACPI_GPE_BLOCK_INFO     *GpeBlock);
      162 +    ACPI_GPE_BLOCK_INFO     *GpeBlock))
 160  163  
 161  164  UINT32
 162  165  AcpiEvGpeDispatch (
 163  166      ACPI_NAMESPACE_NODE     *GpeDevice,
 164  167      ACPI_GPE_EVENT_INFO     *GpeEventInfo,
 165  168      UINT32                  GpeNumber);
 166  169  
      170 +
 167  171  /*
 168  172   * evgpeinit - GPE initialization and update
 169  173   */
 170  174  ACPI_STATUS
 171  175  AcpiEvGpeInitialize (
 172  176      void);
 173  177  
      178 +ACPI_HW_DEPENDENT_RETURN_VOID (
 174  179  void
 175  180  AcpiEvUpdateGpes (
 176      -    ACPI_OWNER_ID           TableOwnerId);
      181 +    ACPI_OWNER_ID           TableOwnerId))
 177  182  
 178  183  ACPI_STATUS
 179  184  AcpiEvMatchGpeMethod (
 180  185      ACPI_HANDLE             ObjHandle,
 181  186      UINT32                  Level,
 182  187      void                    *Context,
 183  188      void                    **ReturnValue);
 184  189  
      190 +
 185  191  /*
 186  192   * evgpeutil - GPE utilities
 187  193   */
 188  194  ACPI_STATUS
 189  195  AcpiEvWalkGpeList (
 190  196      ACPI_GPE_CALLBACK       GpeWalkCallback,
 191  197      void                    *Context);
 192  198  
 193  199  BOOLEAN
 194  200  AcpiEvValidGpeEvent (
 195  201      ACPI_GPE_EVENT_INFO     *GpeEventInfo);
 196  202  
 197  203  ACPI_STATUS
 198  204  AcpiEvGetGpeDevice (
 199  205      ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
 200  206      ACPI_GPE_BLOCK_INFO     *GpeBlock,
 201  207      void                    *Context);
 202  208  
 203      -ACPI_GPE_XRUPT_INFO *
      209 +ACPI_STATUS
 204  210  AcpiEvGetGpeXruptBlock (
 205      -    UINT32                  InterruptNumber);
      211 +    UINT32                  InterruptNumber,
      212 +    ACPI_GPE_XRUPT_INFO     **GpeXruptBlock);
 206  213  
 207  214  ACPI_STATUS
 208  215  AcpiEvDeleteGpeXrupt (
 209  216      ACPI_GPE_XRUPT_INFO     *GpeXrupt);
 210  217  
 211  218  ACPI_STATUS
 212  219  AcpiEvDeleteGpeHandlers (
 213  220      ACPI_GPE_XRUPT_INFO     *GpeXruptInfo,
 214  221      ACPI_GPE_BLOCK_INFO     *GpeBlock,
 215  222      void                    *Context);
 216  223  
 217  224  
 218  225  /*
 219      - * evregion - Address Space handling
      226 + * evhandler - Address space handling
 220  227   */
      228 +BOOLEAN
      229 +AcpiEvHasDefaultHandler (
      230 +    ACPI_NAMESPACE_NODE     *Node,
      231 +    ACPI_ADR_SPACE_TYPE     SpaceId);
      232 +
 221  233  ACPI_STATUS
 222  234  AcpiEvInstallRegionHandlers (
 223  235      void);
 224  236  
 225  237  ACPI_STATUS
      238 +AcpiEvInstallSpaceHandler (
      239 +    ACPI_NAMESPACE_NODE     *Node,
      240 +    ACPI_ADR_SPACE_TYPE     SpaceId,
      241 +    ACPI_ADR_SPACE_HANDLER  Handler,
      242 +    ACPI_ADR_SPACE_SETUP    Setup,
      243 +    void                    *Context);
      244 +
      245 +
      246 +/*
      247 + * evregion - Operation region support
      248 + */
      249 +ACPI_STATUS
 226  250  AcpiEvInitializeOpRegions (
 227  251      void);
 228  252  
 229  253  ACPI_STATUS
 230  254  AcpiEvAddressSpaceDispatch (
 231      -    ACPI_OPERAND_OBJECT    *RegionObj,
      255 +    ACPI_OPERAND_OBJECT     *RegionObj,
      256 +    ACPI_OPERAND_OBJECT     *FieldObj,
 232  257      UINT32                  Function,
 233  258      UINT32                  RegionOffset,
 234  259      UINT32                  BitWidth,
 235  260      UINT64                  *Value);
 236  261  
 237  262  ACPI_STATUS
 238  263  AcpiEvAttachRegion (
 239  264      ACPI_OPERAND_OBJECT     *HandlerObj,
 240  265      ACPI_OPERAND_OBJECT     *RegionObj,
 241  266      BOOLEAN                 AcpiNsIsLocked);
 242  267  
 243  268  void
 244  269  AcpiEvDetachRegion (
 245  270      ACPI_OPERAND_OBJECT    *RegionObj,
 246  271      BOOLEAN                 AcpiNsIsLocked);
 247  272  
 248  273  ACPI_STATUS
 249      -AcpiEvInstallSpaceHandler (
 250      -    ACPI_NAMESPACE_NODE     *Node,
 251      -    ACPI_ADR_SPACE_TYPE     SpaceId,
 252      -    ACPI_ADR_SPACE_HANDLER  Handler,
 253      -    ACPI_ADR_SPACE_SETUP    Setup,
 254      -    void                    *Context);
 255      -
 256      -ACPI_STATUS
 257  274  AcpiEvExecuteRegMethods (
 258  275      ACPI_NAMESPACE_NODE     *Node,
 259  276      ACPI_ADR_SPACE_TYPE     SpaceId);
 260  277  
 261  278  ACPI_STATUS
 262  279  AcpiEvExecuteRegMethod (
 263  280      ACPI_OPERAND_OBJECT    *RegionObj,
 264  281      UINT32                  Function);
 265  282  
 266  283  
↓ open down ↓ 49 lines elided ↑ open up ↑
 316  333  
 317  334  
 318  335  /*
 319  336   * evsci - SCI (System Control Interrupt) handling/dispatch
 320  337   */
 321  338  UINT32 ACPI_SYSTEM_XFACE
 322  339  AcpiEvGpeXruptHandler (
 323  340      void                    *Context);
 324  341  
 325  342  UINT32
      343 +AcpiEvSciDispatch (
      344 +    void);
      345 +
      346 +UINT32
 326  347  AcpiEvInstallSciHandler (
 327  348      void);
 328  349  
 329  350  ACPI_STATUS
 330      -AcpiEvRemoveSciHandler (
      351 +AcpiEvRemoveAllSciHandlers (
 331  352      void);
 332  353  
 333      -UINT32
 334      -AcpiEvInitializeSCI (
 335      -    UINT32                  ProgramSCI);
 336      -
      354 +ACPI_HW_DEPENDENT_RETURN_VOID (
 337  355  void
 338  356  AcpiEvTerminate (
 339      -    void);
      357 +    void))
 340  358  
 341      -
 342  359  #endif  /* __ACEVENTS_H__  */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX