Print this page
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/executer/exsystem.c
          +++ new/usr/src/common/acpica/components/executer/exsystem.c
   1      -
   2    1  /******************************************************************************
   3    2   *
   4    3   * Module Name: exsystem - Interface to OS services
   5    4   *
   6    5   *****************************************************************************/
   7    6  
   8    7  /*
   9      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2013, Intel Corp.
  10    9   * All rights reserved.
  11   10   *
  12   11   * Redistribution and use in source and binary forms, with or without
  13   12   * modification, are permitted provided that the following conditions
  14   13   * are met:
  15   14   * 1. Redistributions of source code must retain the above copyright
  16   15   *    notice, this list of conditions, and the following disclaimer,
  17   16   *    without modification.
  18   17   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  19   18   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 35 lines elided ↑ open up ↑
  55   54  /*******************************************************************************
  56   55   *
  57   56   * FUNCTION:    AcpiExSystemWaitSemaphore
  58   57   *
  59   58   * PARAMETERS:  Semaphore       - Semaphore to wait on
  60   59   *              Timeout         - Max time to wait
  61   60   *
  62   61   * RETURN:      Status
  63   62   *
  64   63   * DESCRIPTION: Implements a semaphore wait with a check to see if the
  65      - *              semaphore is available immediately.  If it is not, the
       64 + *              semaphore is available immediately. If it is not, the
  66   65   *              interpreter is released before waiting.
  67   66   *
  68   67   ******************************************************************************/
  69   68  
  70   69  ACPI_STATUS
  71   70  AcpiExSystemWaitSemaphore (
  72   71      ACPI_SEMAPHORE          Semaphore,
  73   72      UINT16                  Timeout)
  74   73  {
  75   74      ACPI_STATUS             Status;
↓ open down ↓ 32 lines elided ↑ open up ↑
 108  107  /*******************************************************************************
 109  108   *
 110  109   * FUNCTION:    AcpiExSystemWaitMutex
 111  110   *
 112  111   * PARAMETERS:  Mutex           - Mutex to wait on
 113  112   *              Timeout         - Max time to wait
 114  113   *
 115  114   * RETURN:      Status
 116  115   *
 117  116   * DESCRIPTION: Implements a mutex wait with a check to see if the
 118      - *              mutex is available immediately.  If it is not, the
      117 + *              mutex is available immediately. If it is not, the
 119  118   *              interpreter is released before waiting.
 120  119   *
 121  120   ******************************************************************************/
 122  121  
 123  122  ACPI_STATUS
 124  123  AcpiExSystemWaitMutex (
 125  124      ACPI_MUTEX              Mutex,
 126  125      UINT16                  Timeout)
 127  126  {
 128  127      ACPI_STATUS             Status;
↓ open down ↓ 34 lines elided ↑ open up ↑
 163  162   * FUNCTION:    AcpiExSystemDoStall
 164  163   *
 165  164   * PARAMETERS:  HowLong         - The amount of time to stall,
 166  165   *                                in microseconds
 167  166   *
 168  167   * RETURN:      Status
 169  168   *
 170  169   * DESCRIPTION: Suspend running thread for specified amount of time.
 171  170   *              Note: ACPI specification requires that Stall() does not
 172  171   *              relinquish the processor, and delays longer than 100 usec
 173      - *              should use Sleep() instead.  We allow stalls up to 255 usec
      172 + *              should use Sleep() instead. We allow stalls up to 255 usec
 174  173   *              for compatibility with other interpreters and existing BIOSs.
 175  174   *
 176  175   ******************************************************************************/
 177  176  
 178  177  ACPI_STATUS
 179  178  AcpiExSystemDoStall (
 180  179      UINT32                  HowLong)
 181  180  {
 182  181      ACPI_STATUS             Status = AE_OK;
 183  182  
↓ open down ↓ 99 lines elided ↑ open up ↑
 283  282  /*******************************************************************************
 284  283   *
 285  284   * FUNCTION:    AcpiExSystemWaitEvent
 286  285   *
 287  286   * PARAMETERS:  TimeDesc        - The 'time to delay' object descriptor
 288  287   *              ObjDesc         - The object descriptor for this op
 289  288   *
 290  289   * RETURN:      Status
 291  290   *
 292  291   * DESCRIPTION: Provides an access point to perform synchronization operations
 293      - *              within the AML.  This operation is a request to wait for an
      292 + *              within the AML. This operation is a request to wait for an
 294  293   *              event.
 295  294   *
 296  295   ******************************************************************************/
 297  296  
 298  297  ACPI_STATUS
 299  298  AcpiExSystemWaitEvent (
 300  299      ACPI_OPERAND_OBJECT     *TimeDesc,
 301  300      ACPI_OPERAND_OBJECT     *ObjDesc)
 302  301  {
 303  302      ACPI_STATUS             Status = AE_OK;
↓ open down ↓ 41 lines elided ↑ open up ↑
 345  344       */
 346  345      Status = AcpiOsCreateSemaphore (ACPI_NO_UNIT_LIMIT, 0, &TempSemaphore);
 347  346      if (ACPI_SUCCESS (Status))
 348  347      {
 349  348          (void) AcpiOsDeleteSemaphore (ObjDesc->Event.OsSemaphore);
 350  349          ObjDesc->Event.OsSemaphore = TempSemaphore;
 351  350      }
 352  351  
 353  352      return (Status);
 354  353  }
 355      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX